<?php
$siteConf = n_api('site')->getSiteConfig();
?>
<!DOCTYPE HTML>
<html>
	<head>
		<title><?=$siteConf['site_name']?>-<?=$siteConf['site_second_name']?></title>

		<link rel="stylesheet" type="text/css" href="<?=n_css('skin','reset')?>" />
		<link rel="stylesheet" type="text/css" href="<?=n_css('skin','layout')?>" />
		<link rel="stylesheet" type="text/css" href="<?=n_css('skin','fina')?>" />
		<link rel="stylesheet" type="text/css" href="<?=n_css('skin','feature')?>" />
		<script src="<?=n_js('skin','jquery-2.0.3.min')?>"></script>
		<!--script src="<?=n_js('skin','tools')?>"></script-->
		<!--script src="<?=n_js('skin','ui')?>"></script-->
		<script src="<?=n_js('skin','reui')?>"></script>

		<style>
		
		#header{}
		#body{min-height: 500px;}
		#footer{}
		</style>
	</head>
	
	<body>
		<div id="header" class="n-block-bg">
			<div id="top">
				<div class="n-max-width n-middle">
					
					<div class="help">
						<?=n_href(n_url('index','help'),"帮助")?>
					</div>
					<div class="passport">

						<?php if (n_api('passport')->isLogin()){?>
							你好:<a href="<?=n_url('user', 'index')?>"><?=$_SESSION['nickname']?></a>
							<?=n_href(n_url('passport','dologout'),"退出","class='btn'")?>
						<?php 
						}else{
						?>
							<?=n_href(n_url('passport','login'),"登陆","class='btn'")?>
							<?=n_href(n_url('passport','reg'),"注册","class='btn'")?>
							
						<?php
						}
						?>
						
					</div>
				</div>
			</div>
			<div id="nav" class="n-max-width n-middle">
				
				<div class="main-nav">
					<a<?=((N_ACTION=='index')&&(N_EVENT=='index'))?' class="current"':''?> href="<?=n_url('index', 'index')?>">首页</a> 
					<a<?=(N_EVENT=='mprank')?' class="current"':''?> href="<?=n_url('mprank', 'rankDaily')?>">榜单</a> 
					<a<?=(N_EVENT=='article')?' class="current"':''?> href="<?=n_url('article', 'articlesDaily')?>">热文</a> 
					<a<?=(N_EVENT=='weixin')?' class="current"':''?> href="<?=n_url('weixin', 'compete')?>">竞品</a>
					<a<?=(N_EVENT=='union')?' class="current"':''?> href="<?=n_url('union', 'index')?>">联盟</a> 
					<a<?=((N_EVENT=='index')&&(N_ACTION=='cooperate'))?' class="current"':''?> href="<?=n_url('index', 'cooperate')?>">关于我们</a>
					
				</div>
				<div class="logo">
					<div style="color:#3891CA;font-weight: bold;">Topranking.cn</div>
					<span style="display:inline-block;">中国自媒体排行榜</span>
				</div>
			</div>
		</div>
		<div id="body" class="n-max-width n-middle n-block-bg">